import React, { Component } from 'react';
import '../style/App.css';
import {TabNav} from "./Pages";
import {StackNavigator} from 'react-navigation';
// class App extends Component {
//   render() {
//     return (
//         <Pages />
//     );
//   }
// }

const App = StackNavigator(
    {
        // Login: {screen: LoginPage}, // 登录页
        // Reg: {screen: RegPage}, // 注册页
        // FindAccount: {screen: FindAccountPage}, // 找回密码页
      Main: {
          screen: TabNav,
          navigationOptions: ({navigation}) => ({
              header: null
          })
      }
    },
    {
        initialRouteName: 'Main',
        headerMode: 'screen'
    });

export default App;
